package com.example.demo.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Blog;
import org.springblade.core.datascope.annotation.DataAuth;
import org.springblade.core.datascope.enums.DataScopeEnum;

import java.util.List;
public interface BlogMapper extends BaseMapper<Blog> {
	@InterceptorIgnore(tenantLine = "0")
	@DataAuth(column = "tenant_id",type = DataScopeEnum.OWN)
	List<Blog> getBlogs();

}
